import cn.hutool.json.JSONUtil
import com.jiayou.NettyApplication
import com.jiayou.im.entity.Chat
import com.jiayou.im.entity.Operation
import com.jiayou.im.service.impl.ChatServiceImpl
import com.jiayou.im.service.impl.OperationServiceImpl
import com.jiayou.server.ImServer
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.data.redis.core.StringRedisTemplate
import org.springframework.test.context.ContextConfiguration
import org.springframework.test.context.junit4.SpringRunner
import java.util.concurrent.TimeUnit
import javax.xml.transform.Templates

/**
@author 李 双
@data   2020-11-19  12:51
@info
 */
@ContextConfiguration(classes = [NettyApplication::class])
@RunWith(SpringRunner::class)
@SpringBootTest
class KotlinSpringBootTest {


    @Autowired
    private lateinit var chatServiceImpl: ChatServiceImpl

    @Autowired
    private lateinit var operationServiceImpl: OperationServiceImpl

    @Autowired
    private lateinit var stringRedisTemplates: StringRedisTemplate

    @Test
    fun test() {
        println(chatServiceImpl)
        println(stringRedisTemplates)
    }


}